 <#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/productionControl/productionControlLookUp" onsubmit="return  dwzSearch(this, 'dialog');">
	<input type="hidden" id="advancedStatus" name="advancedStatus" value="${condition.advancedStatus!''}" />
	<div class="pageHeader">
		<div class="searchBar">
			<ul class="searchContent">
				<li><label><@label key='productionControlNum.C,colon'>生产管理号：</@label></label> <input type="text" name="productionControlNum" value="${condition.productionControlNum!''}" /></li>
				<li><label><@label key="workCenterCode.C,colon">工作中心编号:</@label></label> <input id="workCenterGrp.workCenterCode" name="workCenterCode" type="text" suggestFields="workCenterCode,workCenterText" postField="workCenterCode" suggestUrl="${rc.getContextPath()}/manage/workCenter/workCenterSuggest" lookupGroup="workCenterGrp" autocomplete="off" value="${condition.workCenterCode!''}" /></li>
			</ul>
			<ul class="searchContent">
				<li><label><@label key='productionOrderNum.C,colon'>生产订单编号：</@label></label> <input type="text" name="productionOrderNum" value="${condition.productionOrderNum!''}" /></li>
				<li><label><@label key='orderType.C,colon'>订单类型：</@label></label> <select name="orderTypeCode">
						<option value=""><@label key='all.C'>所有</@label></option> <#if orderTypes??> <#list orderTypes as orderType>
						<option value="${orderType.orderTypeCode!''}"<#if condition.orderTypeCode?? && condition.orderTypeCode == orderType.orderTypeCode> selected</#if> >${orderType.orderTypeText!''}</option> </#list> </#if>
				</select></li>
				<li style="float:left;width:120px">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
			</ul>
		
		</div>
	</div>
</form>

<div class="pageContent">

	<table class="table" width="100%" layoutH="150" style="overflow: scroll;">
		<thead>
			<tr>
				<th width="100" ><@label key="productionControlNum.C">生产管理号</@label></th>
				<th width="100"><@label key="productionOrderNum.C">订单编号</@label></th>
				<th width="100"><@label key="materialCode.C">物料编号</@label></th>
				<th width="100"><@label key="orderStatusECode.C">订单状态</@label></th>
				<th width="100"><@label key="workCenterCode.C">工作中心编号</@label></th>
				<th width="80"><@label key="selected_first.C">请选择</@label></th>
			</tr>
		</thead>
		<tbody>
			<#if page??><#if (page.data?size>0)> <#list page.data as order>
			<tr target="order_code" rel="${order.productionControlNum!''}">
				<td>${order.productionControlNum!''}</td>
				<td>${order.productionOrderNum!''}</td>
				<td>${order.materialCode!''}</td>
				<td><#if orderStatusECode??> <#list orderStatusECode as ecode> <#if order.statuseCode == ecode.eCode>${ecode.eCodeText!''}<#break></#if> </#list> </#if></td>
				<td>${order.workCenterCode!''}</td>
				<td><a class="btnSelect bringBack" value="{productionControlNum:'${order.productionControlNum!''}'}" ><@label key="select.B">选择</@label></a></td>        
			</tr>
			</#list> <#else>
			<tr>
				<td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
			</tr>
			</#if> <#else>
			<tr>
				<td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
			</tr>
			</#if>
		</tbody>
	</table>
	<#include "/common/dialogPanelBar.html">
</div>